from huggingface_hub import snapshot_download

# 下载模型和处理器到本地目录
model_path = snapshot_download(repo_id="microsoft/resnet-18", local_dir="local_resnet18")
